import java.util.Scanner;

public class java17 {
    public static void main(String[] args) {
        while (true) {
            Scanner scanner = new Scanner(System.in);
            System.out.println("输入是否计算：");
            String str=scanner.nextLine();
            if(str.equals("n")){
                break;
            }
            else {
                System.out.println("输入第一个数：");
                int x = scanner.nextInt();
                System.out.println("输入第二个数：");
                int y = scanner.nextInt();
                jiafa(x, y);
            }
        }

    }

    public static void jiafa(int a,int b){
        int c=a+b;
        System.out.println(+c);
    }

}
